<%- include('../../public/header.html')%>
    <div>增加轮播图</div>
    <form action="/admin/focus/doEdit" method="post" enctype="multipart/form-data">
        <input type="hidden" name="id" value="<%=_id%>">
        <ul>
            <li>
               <span>分类</span>
               <select name="category">
                   <option value="1" <%if(category==1){%> selected <%}%>>网站</option>
                   <option value="2" <%if(category==2){%> selected <%}%>>app</option>
                   <option value="3"  <%if(category==3){%> selected <%}%>>小程序</option>
               </select>
            </li>
            <li>
                <span>名称</span>
                <input type="text" name="webname" value="<%=webname%>">
            </li>
            <li>
                <span>跳转地址</span>
                <input type="text" name="link" value="<%=link%>" >
            </li>
            <li>
                <span>文件</span>
                <input type="file" name="file">
                <img src="<%=img_focus%>" style="width: 25px;height: 25px;" alt="">
            </li>
            <li>
                <span>排序</span>
                <input type="text" name="sort" value="<%=sort%>">
            </li>
            <li>
                <span>状态</span>
                <label for="x">显示</label>>
                <input type="radio" id="x" name="status" value="1" <%if(status==1){%> checked <%}%>>
                <label for="nx">隐藏</label>>
                <input type="radio" id="nx" name="status" value="0" <%if(status==0){%> checked <%}%> >
            </li>
            <li>
                <button type="submit">修改</button>
            </li>
        </ul>
    </form>
</body>
</html>